home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.system / comp.sys.amiga.programmer_7052_000012.msg < prev    next >
Encoding:
Internet Message Format  |  1994-11-27  |  4.1 KB

  1. Path: dd.chalmers.se!news.chalmers.se!sunic!EU.net!news.funet.fi!nntp.hut.fi!nntp.hut.fi!oahvenla
  2. From: oahvenla@snakemail.hut.fi (Osma Ahvenlampi)
  3. Newsgroups: comp.sys.amiga.programmer,comp.sys.amiga.applications,comp.sys.amiga.hardware,comp.sys.amiga.misc
  4. Subject: Re: Redirect Parallel port output
  5. Date: 08 Mar 1994 08:21:32 GMT
  6. Organization: Helsinki University of Technology, Finland
  7. Lines: 77
  8. Distribution: inet
  9. Message-ID: <OAHVENLA.94Mar8102132@beta.hut.fi>
  10. References: <CM7JG6.192@crash.cts.com>
  11. NNTP-Posting-Host: beta.hut.fi
  12. In-reply-to: uzun@crash.cts.com's message of Sat, 5 Mar 1994 19:57:41 GMT
  13. Xref: dd.chalmers.se comp.sys.amiga.programmer:7052 comp.sys.amiga.applications:4072 comp.sys.amiga.hardware:9779 comp.sys.amiga.misc:7476
  14.  
  15. In article <CM7JG6.192@crash.cts.com> uzun@crash.cts.com (Roger Uzun) writes:
  16.  
  17. >Is there a way to get AmigaDOS 3.X to use a device other than
  18. >parallel.device for the parallel printer port?
  19.  
  20. The following is taken from the GVP ioExtender review by J.P.Hillenburg
  21. (jph@anaconda.bloomington.in.us), originally in comp.sys.amiga.reviews:
  22.  
  23. -----------------cut here-----------------cut here----------------
  24.  
  25. NEW INFORMATION [UPDATE:]
  26.  
  27.         Since writing the ioExtender review, I have corrected the problems
  28. with selecting a proper printer.device.  I have found out that Commodore did
  29. provide a means for doing this, but there is no direct way to do it.  I
  30. accomplished it by hex-editing the file ENV:Sys/printer.prefs.
  31.  
  32.         Also note that the following is totally applicable to other parallel
  33. devices.
  34.  
  35. 0) Copy your file ENVARC:Sys/printer.prefs to a safe place, so you can
  36.    restore it if something goes wrong.
  37.  
  38. 1) Find a decent hex editor, preferably FileX.  Make sure that the text
  39.    column is 16 characters wide.  (It doesn't have to be, but makes things
  40.    much easier for our purposes.)
  41.  
  42. 2) Look for the word 'PUNT' in the text column. Place your cursor on the P,
  43.    and then go down exactly two rows.  You can then type the name of your
  44.    parallel device, without the .device. (e.g. "gvppar")
  45.  
  46.         [MODERATOR'S NOTE:  "Go down two rows" in this case means "move
  47.         forward 32 characters," since each row contains 16 characters in
  48.         Joseph's example.  This information may help you if you are using
  49.         a hex editor other than FileX.  - Dan]
  50.  
  51. 3) Once you have tested printing to make sure it works, run SYS:Prefs/Printer
  52.    and SAVE the preferences.  This will copy it to ENVARC:, and at the same
  53.    time, verifying your changes.
  54.  
  55.         Here is a hex listing of my printer.prefs file:
  56.  
  57. 0000: 464F524D 0000009A 50524546 50524844    FORM....PREFPRHD     
  58. 0010: 00000006 00000000 00005054 58540000    ..........PTXT..     
  59. 0020: 00400000 00000000 00000000 00000000    .@..............     
  60. 0030: 00004570 736F6E58 00000000 00000000    ..EpsonX........     
  61. 0040: 00000000 00000000 00000000 00000000    ................     
  62. 0050: 00000000 00020042 00000000 0005004B    .......B.......K     
  63. 0060: 00005055 4E540000 00380000 00000000    ..PUNT...8......     
  64. 0070: 00000000 00000000 00000000 00000000    ................     
  65. 0080: 00006776 70706172 00000000 00000000    ..gvppar........     
  66. 0090: 00000000 00000000 00000000 00000000    ................     
  67. 00A0: 0000                                   ..                   
  68.  
  69.         Here is my modified printer.prefs file uuencoded, for those too lazy
  70. to do the above themselves:
  71.  
  72. begin 777 env:sys/printer.prefs
  73. M1D]230   )I04D5&4%)(1     8       !05%A4    0               X
  74. M      !%<'-O;E@                                       ( 0@  X
  75. M    !0!+  !054Y4    .                                &=V<'!AX
  76. ;<@                                  X
  77.  X
  78. end
  79.  
  80.  
  81. --
  82. Joseph Hillenburg (xterm), NPS Technologies, Bloomington, Indiana
  83. UUCP: jph@anaconda.bloomington.in.us      \ /  Long live the Hornet
  84. My BBS: The Wrong Number BBS, w/BMS  +----o0o----+
  85. +1 812 332 7379 (V.32bis)
  86.  
  87. -----------------cut here-----------------cut here----------------
  88.  
  89. --
  90. Osma Ahvenlampi - oahvenla@snakemail.hut.fi - finger or mail for PGP key
  91. WWW homepage: http://www.tky.hut.fi/.publish/oahvenla
  92.